<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
  </head>

  <body>
    <div>
      我是拿到了openid的页面；
    </div>
    <script type="text/javascript">
      var a = 10,
        b = 10;

      function foo1() {
        console.log(a);
        var a = 20
      }

      function foo2() {
        console.log(b);
        b = 20;
      }
      foo1();
      foo2();
      var url=window.location.href;
      alert(url);
    </script>
  </body>

</html>
